package cn.wh.beans.factory.config;


import cn.wh.beans.PropertyValues;

/**
 * @author: wh
 * @create: 2022-08-19 16:15
 * @description
 **/
public class BeanDefinition {


    private Class beanClass;

    private PropertyValues propertyValues;

    public BeanDefinition (Class beanClass){
        this.beanClass=beanClass;
        this.propertyValues=new PropertyValues();
    }

    public BeanDefinition(Class beanClass,PropertyValues propertyValues){
        this.beanClass=beanClass;
        this.propertyValues=propertyValues==null?new PropertyValues():propertyValues;
    }

    public Class getBeanClass() {
        return beanClass;
    }

    public void setBeanClass(Class beanClass) {
        this.beanClass = beanClass;
    }

    public PropertyValues getPropertyValues() {
        return propertyValues;
    }

    public void setPropertyValues(PropertyValues propertyValues) {
        this.propertyValues = propertyValues;
    }
}
